<?php
/*由bean脚本生成 powerBy--joe*/
namespace app\common\enum;

class StoreUserIsUpdatePwEnum extends BaseEnumAbtract
{

    const NEED = 1;
    const NO = 2;

    public static function getName($type){
        $type = intval($type);
        $arrayName = self::getArrayName();
        return isset($arrayName[$type]) ? $arrayName[$type] : '状态出错';
    }

    public static function getArrayName(){
        return [
            self::NEED => '需要',
            self::NO => '不需要'
        ];
    }
}